package net.xisberto.bustime.model;

import android.os.Parcel;

public class Bus {
	private int id;
	private int number;
	private String name;
	private int region;

	public Bus(int id, int number, String name, int region) {
		this.id = id;
		this.number = number;
		this.name = name;
		this.region = region;
	}
	public Bus(Parcel in) {
		in.setDataPosition(0);
		this.id = in.readInt();
		in.setDataPosition(1);
		this.number = in.readInt();
		in.setDataPosition(2);
		this.name = in.readString();
		in.setDataPosition(3);
		this.region = in.readInt();
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getRegion() {
		return region;
	}

	public void setRegion(int region) {
		this.region = region;
	}

	
}
